//
//  PTWeChatSdkCall.m
//  PlanTech
//
//  Created by ruifeng song on 2018/7/4.
//  Copyright © 2018年  androidlongs. All rights reserved.
//

#import "PTWeChatSdkCall.h"
#import "WXApi.h"
#import "WXApiManager.h"

@implementation PTWeChatSdkCall

+ (BOOL)sendAuthRequestScope:(NSString *)scope
                       State:(NSString *)state
                      OpenID:(NSString *)openID
            InViewController:(UIViewController *)viewController {
//    if ([WXApi isWXAppInstalled]) {
    
        SendAuthReq* req = [[SendAuthReq alloc] init];
        req.scope = scope; // @"post_timeline,sns"
        req.state = state;
//        req.openID = openID;
    
        return [WXApi sendAuthReq:req
                   viewController:viewController
                         delegate:[WXApiManager sharedManager]];
//    }
//    return NO;
}

@end
